#ifndef TIMETHREAD_H
#define TIMETHREAD_H

#include <QThread>
#include <QString>

class TimeThread : public QThread
{
    Q_OBJECT
public:
    explicit TimeThread(QObject *parent = nullptr);
    void stop();

protected:
    void run() override;

signals:
    void sendTime(QString time);

private:
    bool m_running = true;
};

#endif // TIMETHREAD_H
